from machine import Pin
import time
LED=Pin(2,Pin.OUT)

while True:
    LED.value(1)#输出高电平
    time.sleep(1)
    LED.value(0)#输出低电平
    time.sleep(1)